package com.bdqn.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * SpringWeb配置类
 */
@Configuration
public class SpringWebConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/welcome.html").setViewName("welcome");
        registry.addViewController("/").setViewName("login");
        registry.addViewController("/contractmanager/Apply_daishenhetong.html").setViewName("contractmanager/Apply_daishenhetong");
        registry.addViewController("/index.html").setViewName("index");
        registry.addViewController("/nav.html").setViewName("nav");
        registry.addViewController("/emp.html").setViewName("emp");
        registry.addViewController("/register.html").setViewName("register");
        registry.addViewController("/leftRequire.html").setViewName("leftRequire");
        registry.addViewController("/mainRequire.html").setViewName("mainRequire");
        registry.addViewController("/planman/mainRequire.html").setViewName("planman/mainRequire");
        registry.addViewController("/planman/pclass_select.html").setViewName("planman/pclass_select");
        registry.addViewController("/supplyman/proSelect.html").setViewName("supplyman/proSelect");
        registry.addViewController("/supplyman/category.html").setViewName("supplyman/category");
        registry.addViewController("/supplyman/Project_list.html").setViewName("supplyman/Project_list");
        registry.addViewController("/supplyman/Order_wbxjfa_list.html").setViewName("supplyman/Order_wbxjfa_list");
        registry.addViewController("/supplyman/ProviderConsignment.html").setViewName("supplyman/ProviderConsignment");
        registry.addViewController("lyear_main.html").setViewName("lyear_main");
        registry.addViewController("contractmanager/Apply_daishencaiwu.html").setViewName("contractmanager/Apply_daishencaiwu");
        registry.addViewController("queryandqueto/Project_list.html").setViewName("queryandqueto/Project_list");
        registry.addViewController("queryandqueto/ask1.html").setViewName("queryandqueto/ask1");
        registry.addViewController("contractmanager/jieshilist.html").setViewName("contractmanager/jieshilist");
        registry.addViewController("contractmanager/Confirmcontractapplication.html").setViewName("contractmanager/Confirmcontractapplication");
        registry.addViewController("contractmanager/Apply_querenList.html").setViewName("contractmanager/Apply_querenList");
        registry.addViewController("contractmanager/Apply_kehuisho.html").setViewName("contractmanager/Apply_kehuisho");
        registry.addViewController("planman/Order_ytb_list.html").setViewName("planman/Order_ytb_list");
        registry.addViewController("contractmanager/bianzhilist.html").setViewName("contractmanager/bianzhilist");
        registry.addViewController("contractmanager/querenhetong.html").setViewName("contractmanager/querenhetong");
        registry.addViewController("contractmanager/keweihuhetong.html").setViewName("contractmanager/keweihuhetong");
        registry.addViewController("contractmanager/guidanghetong.html").setViewName("contractmanager/guidanghetong");
        registry.addViewController("queryandqueto/Enquire_bianzhi.html").setViewName("queryandqueto/Enquire_bianzhi");
        registry.addViewController("queryandqueto/Enquire_update.html").setViewName("queryandqueto/Enquire_update");
        registry.addViewController("planman/Order_wbxjfa_list.html").setViewName("planman/Order_wbxjfa_list.html");
        registry.addViewController("supplier/supplier_message.html").setViewName("supplier/supplier_message");
        registry.addViewController("supplier/update_Login_Password.html").setViewName("supplier/update_Login_Password");
        registry.addViewController("supplier/supplier_product_maintenance.html").setViewName("supplier/supplier_product_maintenance");
        registry.addViewController("supplier/product_category_maintenance.html").setViewName("supplier/product_category_maintenance");
        registry.addViewController("supplier/Order_wbxjfa_list.html").setViewName("supplier/Order_wbxjfa_list");
        registry.addViewController("supplier/project_list.html").setViewName("supplier/project_list");
        registry.addViewController("supplier/ProviderConsignment.html").setViewName("supplier/ProviderConsignment");
        registry.addViewController("supplier/product_class_update.html").setViewName("supplier/product_class_update");
        registry.addViewController("supplier/product_class_add.html").setViewName("supplier/product_class_add");
        registry.addViewController("supplier/supplier_products_update.html").setViewName("supplier/supplier_products_update");
        registry.addViewController("supplier/supplier_products_add.html").setViewName("supplier/supplier_products_add");
        registry.addViewController("queryandqueto/Enquire_xjsmx.html").setViewName("queryandqueto/Enquire_xjsmx");
        registry.addViewController("contractmanager/Apply_xjsmx.html").setViewName("queryandqueto/Apply_xjsmx");
        registry.addViewController("contractmanager/Apply_list_do22.html").setViewName("queryandqueto/Apply_list_do22");
        registry.addViewController("planman/Project_list.html").setViewName("planman/Project_list");
        registry.addViewController("planman/XiaDa.html").setViewName("planman/XiaDa");
        registry.addViewController("planman/BoHui.html").setViewName("planman/BoHui");
        registry.addViewController("planman/GongSel.html").setViewName("planman/GongSel");
        registry.addViewController("planman/AddGong.html").setViewName("planman/AddGong");
        registry.addViewController("supplier/BaoJia.html").setViewName("supplier/BaoJia");
    }
    //专门用来注册拦截器的方法
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new LoginInterceptor())
//                .addPathPatterns("/*")
//                .excludePathPatterns("/","/user/login","/css/**","/images/**","/js/**");
//    }
}
